From d7908aa09acf5351893d2aca81f623b459a4bacc Mon Sep 17 00:00:00 2001 From: "vh249@arcadians.cl.cam.ac.uk" Date: Thu, 26 May 2005 15:49:15 +0000 Subject: [PATCH] bitkeeper revision 1.1562.1.1 (4295effbUWTVBipGBrKsyDh6-2FoaQ) add name and pid of app that is using TLS Signed-off-by: Vincent Hanquez --- linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c b/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c index 1c01b91787..6e81f6ada6 100644 --- a/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c +++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c @@ -35,6 +35,7 @@ #include #include +#define DA(_f, args...) printk(KERN_ALERT " " _f "\n", args) #define DP(_f) printk(KERN_ALERT " " _f "\n") #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) @@ -56,6 +57,7 @@ __LINKAGE void do_fixup_4gb_segment(struct pt_regs *regs, long error_code) DP(""); DP("***************************************************************"); DP("***************************************************************"); + DA("** process using TLS: %16s (pid: %5d) **", current->comm, current->tgid); DP("** WARNING: Currently emulating unsupported memory accesses **"); DP("** in /lib/tls libraries. The emulation is very **"); DP("** slow. To ensure full performance you should **"); -- 2.30.2